﻿using System.Globalization;

namespace ContactSMS.Client.Converters
{
    public class CallTypeToColorConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string callType = value as string;
            return callType == "Missed" ? Colors.Red : Colors.Black;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
